﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;
using Etong.Web;
/// <summary>
///SearchShowFactory 的摘要说明
/// </summary>
public class SearchShowFactory
{
    public static ISearchTypeField GetSearchTypeField(SearchShowType searchShowType)
    {
        try
        {
            return (ISearchTypeField)Assembly.Load("App_Code").CreateInstance(searchShowType.ToString() + "SearchShow");
        }
        catch (Exception ex)
        {
            return (new TextSearchShow());
        }
    }
}
